package tetris.data;

public class SPiece extends Piece
{
    @Override
    protected void initPiece()
    {
        piece = new int[][] {
                {0,0,0,0,0},
                {0,0,0,0,0},
                {0,0,1,1,0},
                {0,1,1,0,0},
                {0,0,0,0,0}
        };
    }
    
    @Override
    public int numOrients()
    {
        return 2;
    }
    
    @Override
    public void lrotate()
    {
        if (orient == 0)
        {
            super.lrotate();
        }
        else
        {
            rrotate();
        }
    }
    
    @Override
    public void rrotate()
    {
        if (orient == 1)
        {
            super.rrotate();
        }
        else
        {
            lrotate();
        }
    }
}
